package com.itlong.cloud.app.service;

import com.itlong.cloud.POJO.VO.app.robot.AppRobotAccountInfoGetVO;
import com.itlong.cloud.POJO.VO.app.robot.AppRobotProjectInfoVO;
import org.apache.ibatis.annotations.Param;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;
import java.util.Map;

/**
 * <desc>
 *     机器人APP登录服务层接口
 * </desc>
 *
 * @createDate 2018/10/15
 */
public interface IAppRobotLoginService {

    /**
     * <desc>
     *      获取机器人登录账号信息
     * </desc>
     *
     * @param account 账号
     * @return 账号信息
     * @author wangzhi
     * @createDate 2018/10/15
     */
    AppRobotAccountInfoGetVO getRobotUserByAccount(String account) throws Exception;

    /**
     * <desc>
     *      获取项目id列表
     * </desc>
     *
     * @param userId 开发者账号用户id
     * @return
     * @Author Zhu.yj
     * @createDate  2020/8/3
     */
    List<AppRobotProjectInfoVO> getProjectIdList(String userId) throws Exception;

    /**
     * <desc>
     *      切换项目
     * </desc>
     *
     * @param projectId 项目id
     * @return
     * @Author Zhu.yj
     * @createDate  2020/8/4
     */
    AppRobotProjectInfoVO changeProject(String projectId, String userId) throws Exception;

}
